package com.app.notificationmodule

import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.os.Build


fun create(context: Context) {

    val id = "my_channel_01"

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
        val importance = NotificationManager.IMPORTANCE_LOW
        val mChannel = NotificationChannel(id, "通知标志", importance).apply {
            description = "description"
            setShowBadge(false)
        }
        val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
        notificationManager.createNotificationChannel(mChannel)

    }
}